const express = require('express');
const app = express();
const path = require('path');

app.use(express.static(path.resolve(__dirname, 'static')));
app.set('views', './views');
app.set('view engine', 'ejs');
app.get('/',(request, response) => {
    response.render('a', {data:['a','b','c','d']})
}).listen(3000, ()=>{
    console.log('服务启动成功!!');
});